package com.forlove.app.qselect.login.entity;

import com.forlove.app.common.base.mvp.entity.BaseEntity;
import com.forlove.app.common.base.serializer.JSONKey;
import com.forlove.app.common.utils.SystemUtils;

/**
 * 登录注册模块的接口返回字段
 * Created by yjl on 2017/10/17.
 */

public class LoginEntity extends BaseEntity {

    @JSONKey(type = String.class, keys = "message")
    public String message;

    @JSONKey(keys = "valid_token", type = String.class)
    public String valid_token;

    @JSONKey(keys = "mobile", type = String.class)
    public String mobile;

    @JSONKey(keys = "mobile_type", type = String.class)
    public String mobile_type = "android";

    @JSONKey(type = String.class, keys = "location")
    public String location; //负数需要带上符号

    @JSONKey(type = String.class, keys = "password")
    public String password; //md5后的

    @JSONKey(keys = "device_no", type = String.class)
    public String device_no = SystemUtils.getUserDeviceID();

    @JSONKey(keys = "img", type = String.class)
    public String img;

    @JSONKey(keys = "username", type = String.class)
    public String username;
}
